package com.simple.base.core.repository.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 部门信息表
 * </p>
 *
 * @author kin
 * @since 2017-12-19
 */
@TableName("sys_dept")
public class SysDept implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 部门名称
     */
	private String name;
    /**
     * 上级部门编号，一级部门为0
     */
	@TableField("parent_id")
	private Long parentId;
    /**
     * 排序编号
     */
	@TableField("order_num")
	private Integer orderNum;
    /**
     * 状态(1-启用,0-删除)
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 修改时间
     */
	@TableField("modify_date")
	private Date modifyDate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Override
	public String toString() {
		return "SysDept{" +
			", id=" + id +
			", name=" + name +
			", parentId=" + parentId +
			", orderNum=" + orderNum +
			", status=" + status +
			", createDate=" + createDate +
			", modifyDate=" + modifyDate +
			"}";
	}
}
